SUBROUTINE TEXTAREA1
     * Create a simple form containing 2 edit boxes, 2 text areas
     * and a submit button

     *Include the RealWeb definitions
     INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP

     * Start the HTML page.
     CALL RW_START_HTML_PAGE("Send a Message", "", "", "", "")

     * Start the HTML form, specifying that this subroutine should be run
     * again when the submit button is clicked
     CALL RW_START_HTML_FORM("TEXTAREA1","FORM4","")

     CALL RW_PUT("To:")
     CALL RW_EDIT_BOX("TO",30,"")
     CALL RW_NEWLINE
     CALL RW_PUT("Subject:")
     CALL RW_EDIT_BOX("SUBJECT",30,"")
     CALL RW_NEWLINE

     * Set up the size and initial content of the text area
     ROWS=12
     COLS=40
     CLASS=""
     CONTENT="Type your message here"

     * Display the text area
     CALL RW_TEXT_AREA("MESSAGE",ROWS,COLS,CONTENT,CLASS)

     * Create the submit button
     CALL RW_SUBMIT_BUTTON("SEND","")

     * Complete the form
     CALL RW_END_FORM

     * Complete the page.
     CALL RW_END_PAGE
RETURN

Go to top button